Renamed command conditional from 'message' to 'view' as per backend changes
Fixed bug in JSAPI result rendering api paths