IE10 compatibility fixes #2

Still broken... become less broken though.