Refactor left sidebar js
Refactor mainshared
Optimize JS
Optimize JS