renamed main function so as not to conflict with jquery ui slider function.