how to get range slider value in javascript