I've seen this page: http://yootheme.com/support/question/36003 And it shows the command needed: ('#lightbox-close').trigger('click') running this would trigger the close action on the modal lightbox, closing it.
So I was trying to put the script above the form.
Here's what I know for sure doesn't work:
e2ma_signup_submit_button is the ID of the submit button in the form.
Anyone with any amount of jquery skill can probably get this working in a few seconds, so any help would be appreciated.