Update main.js
Update script.js
Update css.js
Update widgets.js
Update error.js
Update ui.js
Fixes some conflicts.