Update scanner.js