Adding type property to script tags