append semicolon to the start of anonymous function