add methods for loggers to output CSS in head and JavaScript in footer