fixed json calls in index.html