Modified script_tag to allow setting script element id attribute