Update classList.js

Requested changes for clarity and performance