#1909| Cleaning up visit.js