Began implementing @joshcroad's AJAX library. Fixing bugs