CHanged reportinteraction2 to use only one visualize.js session init. And simplify the code using helper functions.