json calls working for html builds