These scripts need to be loaded globally for file uploading to work properly