How to have a button to call a JavaScript function?