fixed onclick function setting
Merge pull request #3 from wats/fixed-onclick-function

fixed onclick function setting