Optimizing game loop timing

Changing from Date.now to window.performance.now