Append class to an existing one in raw JS