Added timeout to add class function so that menu animation now works on Firefox