A simple framework to send JS client side errors to a remote server for persistence