Gamerscoin-related functions implemented in pure JavaScript