fix polyfill declaration

fixes #3