set onclick in js file