calling styleDefault and styleLightContent should only affect text color
cleaned up js, removed unused requires, removed unused 'new' object function and defined directly