Update EmailComposer plugin

I've fixed the logic of passing arguments from the JavaScript code, and also assigned default values as necessary.