Update loadPref.js

orientation test