; doesn't come at the end of every line, just most lines.
The only lines that don't end in ; are called declarations. Brackets also don't end in semicolons (usually) because they're not really lines of code. Since } at the end of your script closes a function declaration (serverCmdShowRunTime) it doesn't get a semicolon. Another example of a declaration is an if statement, so lines that start with "if" don't get semicolons either. "else" works the same way. All other lines in your script deserve a semicolon.