結果 : how to return true or false in javascript function