Got ajax working

Ajax is working on both page load and button click. Need to create
button