Javascript widget for selection of regions on time based data