so I've made some define variables, and it works fine

Name [job.name]
Size (Here I will put the script)
Number of Pages [Stats.NumberOfPages]
Bytes [Job.Size]
Colours [Stats.Colorants:Separator=-]
but when I want it in mm instead of points,
so I found this script here, but now, I would like to put it together.
and make the define variables like a script
[function convert() {
var MBpt = job.getVariableAsNumber( "[Stats.TrimBoxHeight]" );
var MBmm = Math.round( MBpt * 0.35277 ).toString();
var MBpe = job.getVariableAsNumber( "[Stats.TrimBoxWidth]" );
var MBmi = Math.round( MBpe * 0.35277 ).toString();
return "Format: " + MBmi + " x " + MBmm + " mm"
}
convert();]