Clean up button click handler on JS destroy