[client][library.js] Add missing "var" to a local variable