Simplified the main removeClass() function but had to leave the old version for compatibility with IE and also using it for Chrome since it's faster.