reformat existing js on show page to dry it out