Finite element solution of viscous jet flows with surface tension