When you click on the button two things will happen:
Before you click the button, none of the javascript functions are part of the page (go ahead and check the page source).