added player movement + fixed js-lint errors