**ReferenceError: Can't find variable: currentLoop**

Do you have any loops? This post may help.