Overlay did not hide in firefox. Now using jQuery, since it is already loaded