add person tracking for javascript