add scanner.js into the project