Added an example for the to() with function parameter change.

The example moves the center of the ugly small div to the point clicked, then moves the div away from over the point, left if it would go over the right side of window, right otherwise.