changed close icon to x, added animationspeed for scrolltop, used the existing width var again in functions