Fix argument sending in js