Update loadPref.js

using ancestorOrigins again