patch to save javascript file (generated by -csp) in the directory specified by -o