use Javascript class so as to load accompanying css - Jamie