Javascript utility to take a compacted JSON string and prettify it