Update scannerFunctions.js