Make a client-side library that can transparently make ajax requests for events & display errors properly based on the anomaly value.