Write the examples directly to the demo page rather than console.log