Added js code to display dynamic content in HTML