node.js accurate game loop