change document.open() to window.open()
Merge pull request #17 from witchu/master

change document.open() to window.open()