That is the way I would always use a client script...
# suitescript
a
That is the way I would always use a client script in a Suitelet...