Added type="text/javascript"