Clean up the example javascript