I call this function at the end of my HTML file - its basically just some fancy menu stuff from a tutorial I found online. The javascript (included below) is never called for some reason. I even tried to add an alert() to confirm this and I never see the alert popup so I know its not being called, but the file does exist on my server in that location.
Any thoughts?
<script type="text/javasvcript" src="js/filestorage.js" />
filestorage.js
/**
 * On DOMReady initialize page functionality
 */
$(document).ready(function(){
    // Test we load this file
    alert("READY!");
    //Add functionality into the menu buttons
    prepareMenu();
});
/**
 * Prepares the menu buttons for selecting
 * filetypes
 * @return NULL
 */
function prepareMenu()
{
    $("#menu li").click(
        function () {
            $("#menu li").each(
                function(){
                    $(this).removeClass("active");
                }
            );
            $(this).addClass("active");
            HideFiles($(this).children().html());
        return false;
    });
    //Select the first as default
    $("#menu li:first").click();
}
/**
 * Shows only the selected filetypes
 * @param selector
 * @return bool
 */
function HideFiles(selector)
{
    //show all files
    if(selector === "All files")
    {
        $("#files > li").show();
        return true;
    }
    else
    {
        //show only the selected filetype
        $("#files > li").hide();
        $("#files > li." + selector).show();
        return true;
    }
}
 
    