Get current UserId using javascript from ms crm 2013

We can get current userid from the context like this,
function show()
{
var userid = Xrm.Page.context.getUserId();
alert(userid);
}