LINKING INPUTS AND PAGE

Also it seem that you have two onReady functions, you should only have one of those in your page. And you should put button event handlers inside the onReady, you should always click the add event handler in the properties panel.