Work on IE8 bugfixes
Merge branch 'master' of https://github.com/manotaur/ydh2s

Merging Dave's bugfixes and my bugfixes, close to the end