append script after event listeners are added for IE

@ianstormtaylor