Fixes javascript error that somtimes occurred with the formatBlock command
Optimizes isVisible() which was prominent during profiling
Fixes state-override didn't work reliably