Better handling of external JS being loaded out of order.