fixing ace editor real world example