IE fixes

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

IE fixes
Merge branch 'master' into 0.0.4-ts
Pommelom