Create platformMovement.js