Is it possible for someone to track my phone activity using a JavaScript file? [closed]

I found a file named “jquery-2.1.3.min.js” on my Android phone’s internal storage and I think someone I know put it there to track my phone’s browsing history and app browsing history. Is this possible? I’ve since deleted the file and don’t have the code it contained.

After deleting it, it hasn’t come back. It was in the Internal Storage folder on my phone.