config rails to work with require.js
added libs, main and router to the require config