remove js links from templates