Fixed invalid variable name issue

Bug indicated in https://github.com/turban/d3.slider/issues/7