added paramaters to js