fixing typo in routes and adding some js files