Could you please post your full script so that we can help you resolve the issue, chances are it will be a closing bracket / brace or a missing semi-colon but if you post your code up we can see. You can use the Preformatted Text tool on the toolbar to format it also. (CTRL+SHIFT+C or the </> icon)