dbDesigner refactoring
JSLint changes and JS unit tests