Added support and bug fixes for multiple calls on single page.  Cleaned up and organized code.  Added demo.html