added wrapping .r.js