Encoded polyline generator - for Google Maps in JS