extracting js files from public