Update index.js

Changed default ports to be 443 for SSL and 80 for non-SSL (they were switched). Passed the whole URL to the connection, since it needed both the host and the path. Updated the package by bumping the version number. Updated the README to make ws.connect()'s callback non-optional, since it wasn't optional (at least, not in my experience).
Thanks for the comment on Server. I was so totally focused on changing the client side code that I completely ignored the server. I'll go ahead and toss this in and make sure it works.