inject assets into HTML documents