Update pageScanner - InDev.js

First refactor