fixes a missing reference in js