caller in JavaScript

function functionB(){
         var Boss = true;
         functionA();
    }
    function functionA(){
        myBoss = functionA.caller.name;
        document.write(myBoss + "<br>");
    }
    functionB();