Bug 1001888 - JSHint fixes for shared/js/test/unit r=etienne

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