rewrite for plupload version 2.0.0+