Trim JS argument identifiers and update tests