var user=Cookies.get('username');
var pass=Cookies.get('password');

if(user != ""){
$("#username").val(user);
$("#password").val(pass);
$("#details").text("Username is "+user+" and Password is "+pass+"");
}


$("button").click(function(){
	var user=$("#username").val();
	var pass=$("#password").val();
	Cookies.set('username',''+user+'');
	Cookies.set('password',''+pass+'');
	$("#details").text("Username is "+user+" and Password is "+pass+"");
});

$("#delete").click(function(){
	Cookies.remove('username');
	Cookies.remove('password');
});