Revert "Revert "Bug 922308: Add ability to load JSMs via loader""

This reverts commit cd2146c6d982c511cbfc6d97fb070450792cef0e.