Remove extra url paths from routes
Fix Jquery scope