Building a Point Map in JavaScript