Fix Chrome 36.
Merge pull request #9 from cr3ative/master

Chrome 36 compatibility shim