tweaks to javascript postprocessing