javascript modifications and change of marker icons