Fix missing semicolon, redundant var declaration