scanner.scan(function(result) {