Made it PROPERLY work on IE8

Made it PROPERLY work on IE8 and other minor improvements