Move main.js from public to lib
Update main path in package.json
Add resultRender.js
Add checks for element "embodied to"