Changed script type and formatting