fix some stupid mistakes and use classList API instead of screwing around with className API