Refactors first few var assignments to use jQuery
Continues refactoring with jQuery
Refactors button click event completely
Implements AJAX jQuery request
Cleans up main.js