Doing Animated Sprite Sheet with Arrow buttons

I have implemented the movement with arrow buttons left right and jump
while I also done the sprite sheet player animation. On pressing left or
right, the player will animate itself. Created some java scripts
accordingly