Updated window.attachEvent 'resize' to 'onresize'