Javascript version of ConstellationMap