adds some jquery for form submissions on document show page