Allow passing in extensions to mode (eg lineComment to work with the codemirror comment addon)