add resultWithStatus(CDVCommandStatus, NSArray) method.