nevermind, I figured it out:
var UserID = localStorage.getItem('UserID');
var temp = {"collName": "users", "id": UserID};
return temp;
Strange that the syntax I used previously didn't work.
I somehow created a malformed local variable while creating a login service, and couldnt delete it. I tried to delete the service, now the editor just hangs when I try to load the page to create the service again.