https://devhubby.com/thread/how-to-handle-client-side-javascript-errors-with