Fix some JShint errors
Merge pull request #14419 from fcampo/jshint-errors

[Bug 946773] JShint errors (r=arcturus)