fixing jquery syntax for infowindow event listener