Update sidebar.js

As element in link function is just a jquery select object. Why cant we just use that to bind semantic ui's javascript functions.