now sends params to client js