Fix some minor JS errors/warnings
Merge pull request #3768 from ussuri/cde-polymer-designer

Polymer Designer: fix some minor JS errors/warnings