1. added a global var called startPt;
2. In onMouseDown function, assigned startPt = pins[i].children['pin'] ; and added codes about strokeColor and strokeWidth to "highlight" the dragged pin
3. In onMouseUp       fucntion, added a condition statement to de-highlight the pin

4. Changed codes in zxcMakeTextBox function for fixing the typing lag.