rm extra slash from app foldername in js