Fix duplicate keys in JavaScript

Fix code that makes JSHint issue duplicate key warnings.

Change-Id: Ie5bb7e70753e0c1e72f110707e275077977fe71d
Implements: blueprint js-coding-style-checks
Merge "Fix duplicate keys in JavaScript"