update upload js to use variables for container