I tested status.php return value with var_dump($result) and alerted it out in check() function like this:
function check() { $.ajax({
Just Remove Type checking i.e '===' replace with '=='
function check() { $.ajax({ url: "status.php" }).done(function(data) { if(data == true){ alert("true"); } else { alert("false"); } }); }