adding routes and front end js for archive