correct a word - enum
revise the error struct in widget.js
add a box as a node in demo.html
revise the usage of module pattern in widget.js
move some api functions to other js files
add new enums for element
add new functions for util.js