Remove directive script from raw js