created method to insert documents into elasticsearch
setting up Html class file