The code is sound when looked at in the editior but due to it being a XML character it strips it out in the main view.
If you remove the spaces in the ' & # x 0 D ; ' part of the script it will work. The script has been amended to ensure it shows that part if it now.