Update wsc-test.js

memory bug fix