Adding javascript for sidebar toggle