changed the array of attributes to object that contains the key and values used to build the options for the codemirror instance