Fix some js in order to simulate _blank target link