Added support for getting back the map reference usign jQuery data