improv(js): Reduce the inline JS on the phpfw page.

BREAKING CHANGE :
This change is not backward compatible. On all the projects using phpfw,
the ui.js file will have to be updated!