added semicolon to front of closure

I was getting weird errors about '(' being unexpected content right
after 'function'