Looks like you have an extra curly bracket ( } ) at the end of your script. Just delete it. Also, no need to cross-post in different forums. People will see your one post.