move irc to js