Fixing uploadScript