seperate route information in the js file