switch to jquery, fix scroll spy on visits