Hiepluong dev

update sidebar task: move javascript code to preference_sidebar.js
jQuery variables should be prefixed with `$`: 
```
var $select_option = $('#course_navbar_preference_course_id').find(':selected');
```