Movement through Java script

Hey, how do I go about moving an object towards a point or object through JavaScript? I have NO clue what to do, Sorry for the stupid question.

P.S. how would I create a variable to adjust the time it takes from a to b?

There is a nice Library wich I use for these kind of issues.

http://itween.pixelplacement.com/

Simple to use and understand and alot examples on the Website.