add initial r.js build config
use RequireJS optimizer for build