(JSHint) fix code (missing semicolons, etc.)

Signed-off-by: Jan Pecha <janpecha@email.cz>