Made js more consistent.