added first implementation of the JavaScript SDK

@zzen I'm on the bus from Kampala to Kigali and running out of battery ;) Couldn't test it much, but I hope it helps as a base of discussion on how the auto-generated JS SDK could look like.

Let me know what you think, I'll be hacking tonight from like 9pm Kigali time