/*
 * I am working on this
 */
(function() {
    var test = "test",
        test2 = "test2";
})()
/*
 * I am working on this
 */
(function() {
    var test = "test",
        test2 = "test2";

    function log() {
        console.log(test + " - " + test2);
    }
})()
Add log function into work2.js file(which belongs to assets/js).