Tkinter If Button Pressed In Javascript