another potential js fix