scw.js cleanup