Fix JS Lint Errors and Warnings