Finished entity.js and added RequestAnimationframe for rendering