Migrate the Package module to CommonJS format.
Use JS.require() to load dependencies in specs.