Modified the js to make websocket work properly and Added client side template to render new books