fixed hawthor for js display toggle of type