An angular module to post JS errors to the server