Implementation of the xkcd geohashing algorithm using JavaScript