Create mode-r.js