Added JS error reporting
Merge branch 'feature-reporterror' into dev