Create scanner.js