JS for initial user visit working