Fixed JavaScript. Buttons can only be clicked once now.