fixes issue #1308
remove outdated code
IE8 fixes where Class needs to be refered to window.Class, just apply it to everything
because IE8 wants it that way
use jquery .inArray rather than indexOf (for IE of course)
Merge pull request #2766 from FinalAngel/develop

Minor fixes