Cleaning the code

Merging separate getInfo- and infobubbles-functions for click events and
other events.