Layout tabs can be array of string, array of tab objects or w2tabs object
Updated generateHTML method and how it is used