Bug 984265 - JSHint fixes for shared/js