Logger javascript bugs WebComponent with Polymer