prelim version of style-switching js