#2 added the create annotation functionality to index.html 
Improved exception handling