Close anonymous function at the end of a line