added bg polyfill among other js changes