Update loader.js
Test passing in AMD, code loading in node