remove log from scan javascript