The reason the code on this site doesn't work but the code on destructoid does is due to the single quote characters. The code on destructoid uses a regular single quote character, ASCII character 27 in hex or 39 in decimal. The code as shown on ohgizmo is using some other special character that looks like a quote. This often happens when using something like a word processor to type computer code. Computer code is not intended to be typed in a word processor or any other sort of rich text editor. Get rid of the fancy single quote character and use a nice simple regular single right quote ASCII character, and all will be well.