Lightweight JS game loop library