add the console code into each html page