Japanese government prepares for M-8 class megaquake