using js to visualize map