Merge pull request #7 from StreamRail/master

check existence of window before referencing it to allow mocha tests to pass
Update bufferbuilder.js
Remove unused check
can no longer force publish
0.0.9
upstream sync