Japan braces as typhoon charts course for main island