Separate the demo.html (which is just the relevant div) from the index.html (which contains everything necessary to run locally).