added missing 'var' keyword to Message module