remove js from template