For me the goal of this file is to display the changes related to CGXP not to duplicate them.
By we should update this procedure:
http://docs.camptocamp.net/c2cgeoportal/integrator/update_application.html#update-cgxp
And modify the default viewer.js.