Fix up spec for javascript.