faster reformat for javascript when document == psifile content