converted from native.js to jQuery
sometimes, clicking on the history button also clicks the 'i' button underneith - this fixes that