Javascript based API with methods used to access the Open PHACTS Discovery Platform and parse the responses