Yen at 40-year low puts Japan on track for July 4 intervention