Tkinter If Button Pressed Javascript Playground