Fixed app not running on Simulator or Device
-Removed body onload call and switched for .ready()