uses jsdom to print the code tag