Small Syntax fixes to Types

Fixing JavaScript syntax by adding comments. Also maintains consistency.