CMS-2610 Implement rendering of content using javascript