Game oriented JavaScript Utils