adding more parameters to pass to JavaScript