Replaces references to non-optimized scripts or stylesheets into a set of JSP files (or any templates/views).