Added JSON API + started AJAX interface