replace a src with a lib tag