Update ws_validator.js

wrong variable name