moving script to web-client-viewmodel.js