added nodefactory, after makeadapter, but incomplete, next ones are including prototype.js with a clone method etc.