added new function (createD) to globs.js