Moved lib/main.js to nscale.js.