reduce code noise in define.js