updated form.coffee to not rely on map and instead use coffeescript comprehensions