Hiepluong dev

update sidebar task: move javascript code to preference_sidebar.js
insert new line at the end of file.