optimizing ace editor