update README javascript, use on("connect") event