added title to json that servlet returns