hoist xScale and xAxis variable to top level fn.
hoist xScale and xAxis variable to top level fn.

Without this hoist on label click (when in strict mode) can result in xScale being undefined in the click handler and thus causing a runtime exception.
denisemauldin/d3-timeline