fixing some setting of variables without var, missed semicolons