updates routes and js file