First attempt at removing the jQuery dependancy

I may have missed some things here, but feel free to comment.
This will work on IE 10 and up