moved polyfill into own file
Merge pull request #14 from Raynos/master

moved polyfill into own file