Created a drawNode method in the index jade file.