Fixed Race Conditions and reorganized functions in home.js
Merged game width and height.