use type: "redirect", not "popup"; this should work around issue #2, which I think may have something to do with popups
use type: "redirect", not "popup"; this should work around issue #2