Add two type and a function

The code is in src/dform.add.js  
and the example in the page  getstarted-add.html.   I have not finish it completely. You can look at it. and tell me  your opinion.