added paramaters to js
added paramaters to js