SERVER-11149 Improved version of geo_s2sparse.js

Signed-off-by: Matt Kangas <matt.kangas@mongodb.com>