Capillary instability and breakup of a viscous thread