JavaScript reference implementation of the Open Assets Protocol