Unfinished port of TweetNaCl to JavaScript