Pass the user to javascript