Bug 1005330 - JSHint fixes for shared/js/download/ r=aus

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