Moved character definition type stuff from script.js to DD.js