You are attaching the Client Script, then editing ...
# suitescript
e
You are attaching the Client Script, then editing the record, which fires
pageInit
, which opens your Suitelet