Working media object and javascript auto add of geo locations