JavaScript: Check last character

by MythOfEchelon

HTML

<!-- This is just my HTML5 template. Make sure you set this up correctly for your personal needs. -->

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        
        <style>
            * {
                margin: 0;
                padding: 0;
            }
        
            html {
                font: 16px "Segoe UI", "Segoe WPC", Helvetica, Arial, "Arial Unicode MS", Sans-Serif;
            }
            
            div {
                float: left;
            }
            
            #page_Wrapper {
                /* 
                   Provides an unobstrusive platform for future full-screen overlay uses
                */
                width: 100%;
                height: 100%;
                position: relative;
            }
            
            #content_Wrapper {
                
            }
            
            
        </style>
        
        <script>
            document.onreadystatechange = function(){
                if (document.readyState === "complete"){
                    /* 
                       Page is fully loaded and ready for interaction.
                       Using this method circumvents issues caused by attempted interaction with uninitialized objects.
                    */
                    
                    checkVowels();
                }
            }
            
            function checkVowels(){
                var output_Element = document.getElementById("output");
                var array_Words = ["fdioshfo", "dhiewh904n", "nfoespf", "usdaoia"];
                var array_Vowels = ["a", "e", "i", "o", "u"];
           
                for (var i = 0; i < array_Words.length; i++){
                    for (var j = 0; j < array_Vowels.length; j++){
                        var currentWord = array_Words[i].toLowerCase();
                        if (currentWord.charAt(currentWord.length -...