Identify Task sample using the JavaScript API