Added type attribute to rendered javascript