Beginnings of map javascript