Slightly better option is to "require" your client...
# suitescript
m
Slightly better option is to "require" your client script in the onClick function