Update platformMovement.js