moved the demo code into <script> tags.