Handle escaped chars in replace pattern + put style and script in external files