adding js for sending dynamic content