Identify, query and results handler for use with ESRI's JavaScript API