code formatting + moved creating script element inside the polymer-element template