Custom range input control for JavaScript