now dynamic content also works in js