replace .json with .js everywhere