wip
replace ScanJS with AcornScanJS and fix bugs