Updated build.js to be a standalone file