From capillary to elastic instability of jets of polymeric liquids: Role of the entanglement network of macromolecules