r.js path switching