Add build.js for r.js optimization