fix unterminated statements

Assignments should always be closed with ; otherwise code might break
when run through JS minifiers.