Added error handling example to mathJSExample