update javascript for pretty print