Fix various bugs with states. Remove !important because Chrome was not
allowed a foo.style.display = 'block' value to override an existing
value if that existing value was 'none !important'.