fixed js to send args