Updated error handling doc.
Only call callbackFail if it is passed.
Add functions to display an in-browser popup, instead of using canvas rendering methods.