Create scannerFunctions.js