#JC-1333. JS code for code review changed to objects.