Small Syntax fixes to Types

Adding some comments to fix JavaScript syntax and maintain consistency.