client: fix js syntax error