move range bar creation to jQuery plugin