minor fix in JS of web module