Externalize all JS code and use make tidy-js
We have some JS code in HTML template (info.tpl, confirm.tpl) that should be delivered as JS files in common/
And we have a tidy-js make target that has never been used (or almost). We should always run it before applying changes on JS code.