adding complete chapter using ajax