Clone node from a separate file to current page

Access to the figma global object is only possible from code.js.