JS scrip code cosmetic updates