client: fix redeclaration of a js variable