Fix for IE

Turns out older versions of IE (9 and lower) don't support the `classList` object in JavaScript, so I made some helper functions to do the adding/removing classes stuff. 

(These `addClass` and `removeClass` functions are for DOM elements! They're not to be confused with jQuery's functions, which are only for jQuery objects!)