I downloaded a script for simulating the glass transition temperature from the forum and ran it on my computer. But it keeps giving errors.

I downloaded a script for simulating the glass transition temperature from the forum and ran it on my computer. But it keeps giving errors:'Can't call method "Trajectory" on an undefined value at -e line 165'.I have packaged the established polymer and script in the attachment. Please help me.