Javascript Inspect Element That Only Appear When Other Element Is