Pulling Subscriber Status from Lists using SSJS

I am looking to pull the status of a subscriber whenever they click on the profile center URL link within emails. I have created a custom profile center that pulls all of the lists that I have created onto the page, but I am looking to have another column to tell the user that they are already active or unsubscribed to a list. I have tried using AMPscript but it did not seem to work, so I am looking for a way to pull these statuses using SSJS and then printing it out on the HTML page for the user to see.