Made info window content to be a getter function to support compiled info windows