attempting javascript for button presses