Javascript projectile launch game