helpful things for javascript games