added fix for no users signed in
Merge pull request #21 from gthetwong/ajax

added fix for no users signed in
added check to see if user is signed in before assigning current user id variable