Move the script outside