In scriptQueue.push(), `script.src` was being used to determine control flow,
but this was invalid because it was before it had been copied from `node.src`.

Also scriptQueue.empty() was simplified