Added a cross-browser fadeout effect on overlay