Update README.md

Fixed code snippets.
use window to detect platform and fix global reference
Merge pull request #81 from oqulr/master

Code snippets in Readme have extra parens.
Merge pull request #82 from ramitos/master

use window to detect platform and fix global reference
socket: fix style
socket: added `onerror` instrumentation
socket: ensure `onclose` idempotency
socket: proper `host`/`hostname` support
SPEC: simplified: removed resource from SPEC
socket: constructor can accept uri/opts simultaneously
test: fixed transports tests
socket: fixed access to `opts`
socket: remove `resource` and fix `path`
README: deprecate options for uri
socket: added `data` event (as synonym to `message`)
Do not shadow global XMLHttpRequest

If you use the XMLHttpRequest variable name then the if
typeof XMLHttpRequest === 'undefined' check will always
return false and the XHR polling method is never used.

This is needed because JSONP polling is buggy and doesn't emit
close when server shutsdown. JSONP should be fixed / disabled.
Merge pull request #89 from Raynos/xhr

Do not shadow global XMLHttpRequest
client now ignores unsupported upgrades
Release 0.4.1
Merge pull request #90 from ruxkor/to_learnboost_20130117

client now ignores unsupported upgrades