movement working, OOP in javascript working