Bug 1005331 - JSHint fixes for shared/js/media/

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