added overrideable error handler
Merge branch 'master' of https://github.com/SAITRADLab/ToolkitJS