make pasting work on IE10+
missing var