performance, using r.js to optimize libs