Move global state *ace* into component's local state (via init-state)

Just skimmed your code and thought it should be like that