js to preserve era (when possible) when changing between policies on the timeline for #117