amend js