Add support for loading javascript URLs

Also cleans up the scheme failures a bit.