Fix issues found by jshint