Associated the button with a Javascript function