var paintRoute;
If you don't use var then it will have global scope.