SITE-457: Updated the Javascript for Upload component