Update JS method to capture dig. singature