Update sharedpreferences.js