code: function() {
  	var mappables = ["script" , "style"]
  	for(var m in mappables) {
  	  var which = mappables[m]
  	  if($vars[which+'s']) {//if we have $vars["scripts"] or $vars["styles"]
  		var page_scripts = $vars[which+'s'];
  		var map_json = JSON.parse(fs.readFileSync($data_dir + "/common/"+which+"-mapping.json"));
  		var mapped_scripts = [];
  		for(var i in page_scripts) {
  			if(page_scripts[i] in map_json) {
  				if(typeof map_json[page_scripts[i]] == "string") mapped_scripts.push(map_json[page_scripts[i]])
  				else if(typeof map_json[page_scripts[i]] == "object") //two or more scripts should be included for this to work, like dataTables, jQuery UI, etc ...
  				{
  					for(var m in map_json[page_scripts[i]])
  						mapped_scripts.push(map_json[page_scripts[i]][m])
  				}
  			}
  		}
  		$vars[which+'s'] = mapped_scripts;
  
  		if(('ie_'+which+'s') in $vars) {
  			var ie_scripts = $vars['ie_'+which+'s'];//ie_scripts || ie_styles
  			var ie_mapped_scripts = [];
  			for(var i in ie_scripts) if(map_json[ie_scripts[i].name])
  			{
  				ie_mapped_scripts.push({"version" : ie_scripts[i].version , "file_name" : map_json[ie_scripts[i].name]})
  			}
  
  			$vars['ie_'+which+'s'] = ie_mapped_scripts
  		}
  	  }
  	}
   }
docs: in our page's data file, we save short script/style names, which we must map to original file names this way we can easily only change the script-mapping file and changes will be reflected