New proposed JS API for device querying.