Injecting JSNamespace dependencies to ease testing of JSNamespace.
Refactor JSClass to export directly to module exports.