Tidy up the examples JS.