Use getter in newSocket properly

After compilation there's no `js.Node.net`, only `js.Node.get_net`