Tweaked the JavaScript beautifier to preserve the original JavaScript
unmodified if the beautifier tool fails to beautify it (i.e. returns
a non-zero exist status).
Consistent use of quotes for $tmpFile, which is reliably defined
not to have spaces or funky characters in its name and doesn't
need the clutter of quoting (which otherwise is often a best practice).