fixed JS error checking on new settings tabs

fixed JS error checking on new settings tabs