Add semi-colon before anonymous function