fixes #72

Adding polyfills for IE<=9.