buttons, javascript classes

Integrated CSS buttons code
Moved AJAX Javascript to classes