adding independent 'RangeSelector.js' file with comments