init astrocats.sockets and port javascript code to clojurescript