Make config a js file; Fix r.js build