JS Lint

Fixed minor errors thrown by JS linters.