javascript negative number to boolean