Fixed IE8 Bug with indexOf

Changed line 714 to use jQuery.inArray instead of indexOf to support
IE8.

Also, as it seems, my sublimetext got rid of trailing whitespaces.