optimized jquery code, added code to show message when no books is there after delete