Improve sidebar
Update docs
Refactor js code