add scan.js for test scan event