Improved Basic example in index.html