add arrays to constructor of html doc class