A modular geospatial engine written in JavaScript