Fixed some syntax errors...

Looks like some of your examples that you noted were JS are half js/ half CS ¯\_(ツ)_/¯.