Js to load preference
Js to load preferece