Bug 992674 - [Shared] JSHint fixes for shared/js/

https://bugzilla.mozilla.org/show_bug.cgi?id=992674