Adding JSON and AJAX

Adding pure Javascript AJAX call encoding JSON. Fuck LocalStorage for this.