added javascript for map