fixed the deltaFrame problem in cubes.js loop()