Inject type directly into the dom and parse it from coffeescript
Factor out infowindow logic into strategy object