Javascript framework to catch all the exceptions and track the events for analytics