add jade detect when add script to index