add constructor param js