First version of plugin using formdata