unpack javascript assets when showing html, show definition on click