Update gameLoop.js

Usage: 
var ticks = 30;
var fps = 60;
var game = new Game(ticks,fps);
game.init();
game.onEachFrame(game.loop);