[javascript] What is the "hasClass" function with plain JavaScript?