created function wacky js and html