Update Toast.js

added function scanNetworks