Added jQuery API for slider