add sham and console polyfill