Added an panTo JavaScript example.