This happened to me, but what had happened was there was a completely vital part of the code that hadn't copied. Try manually selecting on the words and make sure every one is copied. It doesn't look like there is anything wrong, but after breaking the code up to see where it stopped working I saw that something was awkwardly not selected. Sorry I can't recall exactly which part it was.