Add element attribute to view, update rendering to append the element inside the script (did not remove the return, the old examples still work)