Added sidebar functionality. Added events.js to split up functions and jQuery events