What is the version of the following sentence with correct punctuation?

Joshua said Alas Lord Yahweh why have you at all brought this people over the Jordan to deliver us into the hand of the Amorites to cause us to perish would that we had been content and lived beyond the Jordan
Joshua said, Alas, Lord Yahweh, why have you at all brought this people over the Jordan, to deliver us into the hand of the Amorites, to cause us to perish? would that we had been content and lived beyond the Jordan!