Refined checkout progress navigation JS function.