* Converted scripts to use the same getLayers() function from lib.js
* Made Refresh() more robust - when an error is encountered, the layer(set) is reloaded automatically. * JS errors are now output to console instead of alerts.
Much improved speed over loading everything manually.