Hi, I narrowed this down. The problem is false code.
Taken from the code you pasted here:
First off, all your apostrophes need to be correct. Then the was not correct. Then, you cannot add the TM sign as a TM sign but you will need to add it via ascii code.
The problem is, as soon as you save, then click edit, it will form the TM sign automatically again, thus not letting you save again. So you will need to replace it by the ascii TM again in order to be able to save.
So, make sure you use this exact code: http://pastie.org/8729020 and paste it to your editor to make it work 🙂