link and create javascript files for all routes