updates js style