quick fix

Changed from "*.js" to list; fixed erroneous filenames; create tmp.js
and rm it so that awk won't complain about overwriting the same file
it's looking at.