Fix script snippet to load JS asynchronously.