window.onbeforeunload = function() { res['headjs'] = '