remove unused argument in js