Some small cleanup and a polyfill for newer versions of chrome
Merge pull request #55 from marekventur/master

Some small cleanup and a polyfill for newer versions of chrome