firefox fix (webkit end event!!)