Refactored js a little, left only updateChangeset method