DOHA - Japan secured their passage to the World Cup round of 16 in Qatar with a dramatic 2-1 comeback win over powerhouse Spain on Thursday.