rm javascript dir