move TextElement to bracketup.js
move BaseNode to bracketup.js