Reverted IE8 compatibility issues and moved them to the ie8.js file