Update bootstrap.js

myPrefListener wasn't global, so unregister failed