Cleaning up main.js spacing/alignments
Added vars that were required and casted the var from float to int.

Now moving on to the nested loop