better API for aceEditor library