converts InfoView to coffeescript