creating js files for linking back and front end