Bug 984111 - JSHint fixes for shared unit test mocks r=julienw

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