make buttons with javascript rather than links