It's missing an end bracket('}') at the end/bottom of the script.
Just add '}' (without the apostrophes) at the end of the script and it may work. If it doesn't, it's because it's outdated. =[