remove some none template javascript