switched to coffeescript for map