Update js\script.js

-big fix made one main loop on 30 fps to reduce lag a lot