JavaScript data range component