added Entity.addGravity and AnimatedEntity.addGravity to entity.js