prettify the example javascript code