Update loadPref.js

Added a title check and toggler