JavaScript implementation of the Open Assets Protocol