delete needless js codes