Entanglement and the molecular weight dependence of polymer glass transition temperature