Ireland managed to hold off the threat of Japan to secure a 39-31 victory at the Aviva Stadium