Typos, thanks Monika
IE8 compat: Use querySelectorAll() instead of getElementsByClassName()
IE8 compatibility