Use `window.location` instead of `document.location`
If a frame, image, or form is named "location" then document.location
will refer to that element instead of being an alias for `window.location`
see https://github.com/meteor/meteor/issues/2380
Merge pull request #195 from mquandalle/window-location

Use `window.location` instead of `document.location`
.gitignore upadte
removed msg double encoding, send function now takes arbitrary js type
no more json encode performed twice