Node.js & Browser compatible javascript geohashing functions