Add JavaScript code. Player can walk left and right.