Bug 1062269 - Load JSON file with shared function in the WhiteList object

r=gsvelto
Revert "Bug 1005331 - JSHint fixes for shared/js/media/"

This reverts commit 22718dc37e07c47d0e2cbcde8d8bf301fb255ab2.
Merge pull request #23786 from iFadey/bug-1062269

Bug 1062269 - Load JSON file with shared function in the WhiteList object r=gsvelto