Edit to javascript to button