A JavaScript Implementation of GeoScript