add a button with a javascript statement