integrate dtabe js
refactoring