smarter handling of js_upload source param