replaced sddScript with JHtml method