Improve example and move into index.html