automate the slider

automate the slider

I am using the slider and want to automate the position of the handle to move the width of the div that it positioned on.  How can I do this?

The div moves because through a java-script code that stating the progress of the playing song.