Adding addButtons method to Editor.js class
changed a variable name to make the code less confusing