set devel to true in jshintrc, rewrote router.js and changed routes structure and avoid duplicate code in templates