(function($) {
 $.set_head_load = function(name, ext) {
  var version = 3;  
  if(ext == "css") { 
    $.ajax({
      url: "/frontend/css/" + name + "." + ext + "?v="+ version, 
      async:false, 
      success: function(css) {
         $("head").append("<style>"+css+"</style>");
      }
    }); 
  }
  else if(ext == "js") {
    $.ajax({
      url: "/frontend/js/" + name + "." + ext + "?v="+ version, 
      async:false, 
      dataType: 'script', 
      cache: true
    });
  }
 } 
})(jQuery);
