Change deprecated platform.js to webcomponents.js