src/js.lua: Handle xhr:send() failing; cleanup of `load_lua_over_http`