embedded upload javascript in response and execute it