Fixing closeMenu function for working in IE8