IE fixes

Not quite fixed...
Merge pull request #42 from wiredearp/master

IE fixes