parameterized the client js