Updating ternjs to latest mainline version (6e77911).
A bit of a stab behind the Arras.