get rid of chrome-only window.location.origin
use wss if protocol is https, ws if http
Merge pull request #2 from blind-coder/dev

get rid of chrome-only window.location.origin - please next time use the test branch. dev will automatically build new dev releases.