Added ws_util.js for common functions.
Using ws_util