add `async` and `type` to applicable script tags