get workspace name from WS-layer.css naming convention.
tidied up scripts