Bug 912184: use require() to load shared/js files

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