Powerful typhoon batters Okinawa, churns to Japan mainland