Kwf.application = { assetsVersion: '{$application.assetsVersion}' };

if (typeof Kwf == 'undefined') Kwf = {};
Kwf.application = { assetsVersion: '{$application.assetsVersion}' };

fix Kwf namespace initialisation