JS linter/closure compiler fixes