#332 putting javascript file of visit details into visitDetails.js