clean up buildDefs.js