Minor JS tidy - remove unnecessary/incorrect =='true' elements of conditions