set pinID in viewpinmodal

used jquery to set the value of the pinID in viewpinmodal