Please format and indent your script correctly. If you do not know how to do that then read the style and best practices guide I posted a link to. Your script is quite unreadable as posted.
Please also read the link on how to ask a technical question. We cannot guess at what you want without a correct description of your issue.
\_(ツ)_/