Fixed php option to return results in json for jquery frontend