FileUpload: adjusted JS so that it will handle dependency on jquery.popup.js better. Entire codebase wrapped in IIFE, to coerce new execution context, then pertinent section also checks for popup availability.