Fix missing semicolons in var declarations