append script after event listeners are added for IE
Merge pull request #6 from segmentio/fix/ie

append script after event listeners are added for IE