moved info window code into a coffeescript class