Replace weechat-protocol.js with weechat.js from https://github.com/eirikb/weechat.js