Added text.js and configured the router