Extracted inline script tag in polymer-body.html into polymer-body.js

To avoid CSP problems in Chrome