String.prototype.endsWith = function(str){ return (this.match(str+"$")==str) }
alert('Does bible end with "Amen."? ' + bible.endsWith("Amen."))