NODEJS Correct extra slash in query template