     return kValue;
            }
            // e. Increase k by 1.
            k++;
          }

          // 7. Return undefined.
          return undefined;
        },
        configurable: true,
        writable: true
      });
    }
  </script>
  <script>
    // PhantomJS doesn't support Number.isNaN
    Number.isNaN = Number.isNaN || function(value) {
      return value !== value;
    }
  </script>
  <script>
    // PhantomJS doesn't support Object.assign
    if (typeof Object.assign !== 'function') 