The button does work, with the click event instead of the inline javascript