custom reporting JS functionality added for triggering different events