Work on loader.js with mongo