turning file into a JS file