Added build directory and optimization using r.js