Browser Javascript loader with integrity checks, failover to additional sources, callback or synchronous operation