Update static/scanner.js