[js] Fix fields reordering.