Migrated the mapping javascript to coffee, woop