add params hendler to js