Change empty-cells with JavaScript

Edit This Code :
Result :