Added js-lint, fixed all js-lint issues