Adding the basic polyfills for legacy browsers here.