make it work for Chrome/MacOS X
Merge pull request #1 from arkadiyk/master

make it work for Chrome/MacOS X