Added config.js, refactored ui.js.
Added space for some backend.js comments.