improve jsdocs
extract extensionhandler.js
use ondocumentready for old IEs, fix LEGACY_IE
cleanup DOM.extend