Clean up class name syntax for DOM node creation