swap.html - add buttons and js