$el.className.split is not a function

See Split and/or Trim