gator-upload.js and gator.js fixes