A little more work on allowing offloading JS assets to a CDN, in main
html helper.