basic movement working  - html5 and javascript