new signature for the function to generate plupload javascript client.