javascript slider on bs-slider plus calculator