Port of TweetNaCl to JavaScript (work in progress)