clean up README file; add index.html example

The readme had incomplete implementation example. I completed the example and added an index.html sample file.