clear up javascript errors in config