js/jquery: Extend the jQuery fn namespace
js/jquery: Find sidebar elements only once
js/jquery: Extracted close() method
js/jquery: Extracted open(id, tab) method
js/jquery: Make open() methods tab parameter optional

The last three commits are closing #3