Replaced rendering loop with requestAnimationFrame
Replaced sprites passed to objet constructor as strings -> now they are passed as JSprite objects